﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HandlingProcedures
{
    /// <summary>
    /// Клиент санатория
    /// </summary>
    public class Client
    {
        private int id;
        private string name;
        private string surname;
        private string patronymic;

        /// <summary>
        /// ID - клиента в хранилище
        /// </summary>
        public int Id
        {
            get { return id; }
        }
        /// <summary>
        /// Имя
        /// </summary>
        public string Name
        {
            get { return name; }
        }
        /// <summary>
        /// Фамилия
        /// </summary>
        public string Surname
        {
            get { return surname; }
        }
        /// <summary>
        /// Отчество
        /// </summary>
        public string Patronymic
        {
            get { return patronymic; }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="id">ID - клиента в хранилище</param>
        /// <param name="name">Имя</param>
        /// <param name="surname">Фамилия</param>
        /// <param name="patronymic">Отчество</param>
        public Client(int id, string name, string surname, string patronymic)
        {
            this.id = id;
            this.name = name;
            this.surname = surname;
            this.patronymic = patronymic;
        }

        /// <summary>
        /// 
        /// </summary>
        /// <returns>ФИО клиента</returns>
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();
            builder.AppendFormat("{0} {1} {2}", surname, name, patronymic);
            return builder.ToString();
        }
    }
}
